import os

from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "map_backend.settings")  # 将house换成你自己的项目名字

app = Celery('proj')

app.config_from_object('django.conf:settings', namespace='CELERY')

app.autodiscover_tasks()